<?php
/**
 * myFooter.php
 * 
 * (C) 2009, tetsuya.odaka(EzoGP).
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* 
 * アプリケーションプログラムの後処理
 *      
 *		author	; t.odaka
 *		date	; 2009/5/12
*/

	//$isMyHistory = true; // test
	/*
	 * $isMyHistory = trueのとき、履歴をセッションに保管する
	 */ 
/*
	if($isMyHistory == null || $isMyHistory == false){
	}else{
		$wkArr[$myTplData['myPageTitle']]=$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
		if(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != ''){
			$wkArr[$myTplData['myPageTitle']]
				=$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];
		}else{
			$wkArr[$myTplData['myPageTitle']]=$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
		}
		$mySessionArr = $_SESSION['my-history'];
	
		if(!isset($_SESSION['my-history'])){
			$mySessionArr=array();
			$mySessionArr[0]=$wkArr;
		}else{
			if(array_key_exists($myTplData['myPageTitle'], $mySessionArr[0])){
			}else{
				array_unshift($mySessionArr,$wkArr);
			}
		}
		if(count($mySessionArr)>10){
			for($i=0;$i<count($mySessionArr)-10; $i++){
				$mySessionArr=array_slice($mySessionArr,0,10);
			}
		}
		$_SESSION['my-history']=$mySessionArr;
	}
*/
	// ログの出力(end)
	$myLog->debug("$myPageName: end");

	/* テンプレートの表示 */
	$myznala->output($myTemplate,$myTplData);
?>